<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>京东购物车</title>
    <link rel="stylesheet" href="./css/a.css">
</head>
<style>
    table {
    /*去掉td间隔距离*/
    border-collapse: collapse;
    width: 100%;
}

th,
td {
    padding: 8px 0;
}

.cartBox {
    width: 990px;
    margin: 0 auto;
    margin-top: 200px;
}

.cartBox tr.title th:nth-child(1) {
    text-align: left;
    font-weight: bold;
    color: red;
}

.cartBox .title th:nth-child(2) {
    color: #666;
    font-size: 14px;
    font-weight: 200px;
}

.cartBox .title th:nth-child(2) span {
    display: inline-block;
    padding: 0px 4px;
    font-size: 13px;
    border: 1px solid #666;
}

/*购物车标题*/
.cartBox .head {
    background-color: #f2f2f2;
}

/*选中每个tr下最后一个td标签*/
.cartBox tr td:last-child {
    min-width: 50px;
    text-align: center;
}

table tr a {
    text-decoration: none;
    color: #444;
}

/*商铺部分*/
.cartBox .shop td:last-child {
    text-align: left;
    color: #444;
    font-size: 14px;
    font-weight: bold;
}

.cartBox .shop td:last-child a:hover {
    color: red;
}

/*商品样式*/
.cartBox .goods {
    border: 2px solid #f2f2f2;
    border-top: 3px solid gray;
}

.cartBox .goods td {
    padding: 15px 0 30px 0;
}

.cartBox tr td:nth-child(1) {
    width: 30px;
    /*input是内联元素*/
    text-align: center;
    /*td标签有专用的上下位置调整样式的属性*/
    vertical-align: top;
}

.head td:nth-child(2),
.goods td:nth-child(2) {
    width: 100px;
}

.goods td {
    font-size: 12px;
    vertical-align: top;
}

.goods td:nth-child(2) {
    text-align: center;
}

.goods td:nth-child(3) span {
    display: inline-block;
    width: 200px;
    height: 32px;
    overflow: hidden;
    padding: 0 6px;
}

.goods td:nth-child(4) {
    width: 140px;
    text-align: center;
}

.goods td:nth-child(4) span {
    display: inline-block;
    width: 122px;
    height: 16px;
    /*以下三行构成超出元素范围文本显示有省略号*/
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.goods td:nth-child(5) {
    width: 90px;
    text-align: center;
}

.goods td:nth-child(6) {
    width: 80px;
    text-align: center;
}

.goods .number {
    display: flex;
}

.goods .number span {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 1px solid gray;
    background-color: #f3f3f3;
    cursor: pointer;
}

.goods .number input {
    width: 36px;
    border-radius: 0;
    text-align: center;
    height: 18px;
    border: 1px solid gray;
    outline: none;
    border-left-width: 0;
    border-right-width: 0;
}

input::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

input[type="number"] {
    -moz-appearance: textfield;
}

.goods td:nth-child(7) {
    font-size: 12px;
    font-weight: bold;
    color: black;
    width: 64px;
    text-align: center;
}

/*结算样式*/
.js{
    display: flex;
    font-size: 12px;
    color: #666;
    background: #fff;
    height: 60px;
    width: 988px;
    margin: 0 auto;
    border: 1px solid #f2f2f2;
    margin-top: 10px;
    align-items: center;
}
.js div:nth-child(1){
    width: 30px;
    text-align: center;
}
.js div:nth-child(2),
.js div:nth-child(3),
.js div:nth-child(4),
.js div:nth-child(5){
    margin-right: 10px;
}
.js div:nth-child(6){
    flex-grow: 1;
}
.js div:nth-child(7),.js div:nth-child(8){
    height: 60px;
    line-height: 30px;
    margin-right: 10px;
}
.js div:nth-child(7) span{
    color: red;
    font-size: 14px;
}
.js div:nth-child(8) span{
    color: red;
    font-size: 16px;
    font-weight: bold;
}
.js div:nth-child(9){
    width: 100px;
    text-align: center;
    height: 60px;
    line-height: 60px;
    background-color: red;
    color: #fff;
    font-size: 26px;
    font-weight: bold;
}
</style>

<body>
    <div class="cartBox">
        <table>
            <tr class="title">
                <th colspan="5">全部商品3</th>
                <th colspan="3">
                    配送至:
                    <span class="re">
                        河南省平顶山市宝丰县
                    </span>
                </th>
            </tr>

            <tr class="head">
                <td>
                    <input type="checkbox">
                </td>
                <td>
                    全选
                </td>
                <td colspan="2">
                    商品
                </td>
                <td style="text-align: center;">
                    单价
                </td>
                <td style="text-align: center;">
                    数量
                </td>
                <td style="text-align: center;">
                    小计
                </td>
                <td style="text-align: center;">
                    操作
                </td>
            </tr>
            <tr class="shop">
                <td>
                    <input type="checkbox">
                </td>
                <td colspan="7">
                    <a href="#">小米小海豚专卖店
                </td>
            </tr>
            <tr class="goods">
                <td>
                    <input type="checkbox">
                </td>
                <td>
                    <img
                        src="https://img30.360buyimg.com/n0/s80x80_jfs/t1/97839/7/20568/95667/636b10eeE4337af56/cd7c7249d6a74d35.jpg.dpg">
                </td>
                <td>
                    <span>
                        小米（MI） 小米游戏本Redmi G Pro 2022款红米学生吃鸡电竞设计编程游戏本
                    </span>
                </td>
                <td>
                    <span>酷睿I7-12650H RTX3060-6G</span>
                    <span>升级定制 32G内存 1T固态</span>
                </td>
                <td>
                    ￥9,989.00
                </td>
                <td>
                    <span class="number">
                        <span>-</span>
                        <input type="number" value="1">
                        <span>+</span>
                    </span>

                </td>
                <td>
                    ￥9,989.00
                </td>
                <td>
                    <span>删除</span>
                </td>
            </tr>     
            <tr class="goods">
                <td>
                    <input type="checkbox">
                </td>
                <td>
                    <img
                        src="https://img12.360buyimg.com/n0/s80x80_jfs/t1/84895/18/32008/85731/636a0a13E816e5a03/721135154e8f8863.jpg.dpg">
                </td>
                <td>
                    <span>
                        小米（MI） 小米笔记本Pro14锐龙版14英寸2.5K超薄学生网课商务办公游戏本
                    </span>
                </td>
                <td>
                    <span>R7-5800H/16G/集成</span>
                    <span>标配512G固态银色</span>
                </td>
                <td>
                    ￥4,999.00
                </td>
                <td>
                    <span class="number">
                        <span>-</span>
                        <input type="number" value="1">
                        <span>+</span>
                    </span>

                </td>
                <td>
                    ￥4,999.00
                </td>
                <td>
                    <span>删除</span>
                </td>
            </tr>     
            <tr class="goods">
                <td>
                    <input type="checkbox">
                </td>
                <td>
                    <img
                        src="https://img13.360buyimg.com/n0/s80x80_jfs/t1/116033/2/28892/91655/6320a5a4E2b2b5c21/cd48be726669b91b.jpg.dpg">
                </td>
                <td>
                    <span>
                        小米（MI） 小米红米RedmiBook Pro 14 2022锐龙版轻薄笔记本电脑
                    </span>
                </td>
                <td>
                    <span>RedmiBook Pro 14 2022</span>
                    <span>R5-6600H/UMA/16G/512G
                    </span>
                </td>
                <td>
                    ￥5,299.00
                </td>
                <td>
                    <span class="number">
                        <span>-</span>
                        <input type="number" value="1">
                        <span>+</span>
                    </span>

                </td>
                <td>
                    ￥5,299.00
                </td>
                <td>
                    <span>删除</span>
                </td>
            </tr>     
        </table>
        <div class="js">
            <div><input type="checkbox"></div>
            <div>全选</div>
            <div>删除选项</div>
            <div>移入关注</div>
            <div>清理购物车</div>
            <div></div>
            <div>已选择
                <span>0</span>
                件商品</div>
            <div>总价<span>￥0.00</span></div>
            <div>去结算</div>
        </div>
    </div>
</body>

</html>